package com.hbnu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

//返回页面
@Controller
public class PageController {
    @RequestMapping("/{pageName}") //Restful风格接收参数
    public String page(@PathVariable String pageName) {
        return pageName;
    }
}
